package com.BlogPark.service.LoginService;

import com.BlogPark.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface LoginService {

    /**
     * 登录
     * @param user
     * @return
     */
    public User Login(User user);

    /**
     * 登录状态
     * @param email
     * @return
     */
    public int statusOn(String email);


    /**
     * 退出状态
     * @param email
     * @return
     */
    public int statusOff(String email);
    /**
     * 找回密码byEmail
     * @param email
     * @return
     */
    public User getUserByEmail(String email);


    /**
     * 修改密码或用户名
     * @param user
     * @return
     */
    public int updateUser(User user);


    /**
     * findUserByEmail
     * @param email
     * @return
     */
    public User findUserByEmail(String email);


    /**
     * 修改密码
     * @param user
     * @return
     */
    public int updatePWD(User user);



}
